import 'package:json_annotation/json_annotation.dart';

part 'bt_friend.g.dart';

@JsonSerializable()
class BtFriend {
  final String userId;
  final int userType;
  final String nickname;
  final String avatarUrl;
  final String? about;
  final String country;
  final int gender;
  final int age;
  final String? birthday;

  const BtFriend({
    required this.userId,
    required this.userType,
    required this.nickname,
    required this.avatarUrl,
    required this.about,
    required this.country,
    required this.gender,
    required this.age,
    required this.birthday,
  });

  factory BtFriend.fromJson(Map<String, dynamic> json) => _$BtFriendFromJson(json);

  Map<String, dynamic> toJson() => _$BtFriendToJson(this);
}
